package com.ccom.ccomstart.validation;

import javax.validation.Valid;

/**
 * @author zjj
 * @date 2021/9/13 10:18
 * @description
 */
public class Persion {
    private String name;
    private String age;
    @PhoneNumberValidation(groups = {Update.class, Create.class})
    private String phone;

    @PhoneNumberValidation(groups = Update.class)
    private String phone2;

    @Valid
    private Dept dept;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone2() {
        return phone2;
    }

    public void setPhone2(String phone2) {
        this.phone2 = phone2;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }
}
